.class public Lcom/bigtincan/android/adfree/DoUpgrade;
.super Landroid/app/Activity;
.source "DoUpgrade.java"


# instance fields
.field private cb3:Landroid/widget/CheckBox;

.field private common:Lcom/bigtincan/android/adfree/Common;

.field private et1:Landroid/widget/EditText;

.field private failedmsg:Ljava/lang/String;

.field private handler:Landroid/os/Handler;

.field private lastupdate:J

.field private pd:Landroid/app/ProgressDialog;

.field private r1:Landroid/widget/RadioButton;

.field private r3:Landroid/widget/RadioButton;

.field private remotever:J

.field private revertfile:Z


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const-wide/16 v1, 0x0

    .line 28
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 31
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->failedmsg:Ljava/lang/String;

    .line 32
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    .line 33
    iput-wide v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    .line 34
    iput-wide v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->remotever:J

    .line 339
    new-instance v0, Lcom/bigtincan/android/adfree/DoUpgrade$1;

    invoke-direct {v0, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$1;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    iput-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->handler:Landroid/os/Handler;

    .line 28
    return-void
.end method

.method private DoIt()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    .line 466
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    .line 468
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v2, "et1"

    iget-object v3, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-interface {v3}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/bigtincan/android/adfree/Common;->SetStringPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 470
    const v1, 0x7f040021

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    const v2, 0x7f040022

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v1, v2, v4, v4}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v1

    iput-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->pd:Landroid/app/ProgressDialog;

    .line 472
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/bigtincan/android/adfree/DoUpgrade$14;

    invoke-direct {v1, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$14;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 488
    .local v0, t:Ljava/lang/Thread;
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 489
    return-void
.end method

.method private Revert()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 386
    iput-boolean v3, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    .line 387
    const v1, 0x7f040026

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    const v2, 0x7f040027

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v1, v2, v3, v3}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v1

    iput-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->pd:Landroid/app/ProgressDialog;

    .line 389
    const-string v1, "Revert() started."

    invoke-static {v1}, Lcom/bigtincan/android/adfree/Common;->LogMessage(Ljava/lang/String;)V

    .line 391
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/bigtincan/android/adfree/DoUpgrade$13;

    invoke-direct {v1, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$13;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 461
    .local v0, t:Ljava/lang/Thread;
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 462
    return-void
.end method

.method static synthetic access$0(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 348
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->showMessage()V

    return-void
.end method

.method static synthetic access$1(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 464
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->DoIt()V

    return-void
.end method

.method static synthetic access$10(Lcom/bigtincan/android/adfree/DoUpgrade;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 32
    iput-boolean p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    return-void
.end method

.method static synthetic access$11(Lcom/bigtincan/android/adfree/DoUpgrade;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 31
    iput-object p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->failedmsg:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$12(Lcom/bigtincan/android/adfree/DoUpgrade;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->failedmsg:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$13(Lcom/bigtincan/android/adfree/DoUpgrade;J)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 33
    iput-wide p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    return-void
.end method

.method static synthetic access$14(Lcom/bigtincan/android/adfree/DoUpgrade;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 339
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$15(Lcom/bigtincan/android/adfree/DoUpgrade;)J
    .locals 2
    .parameter

    .prologue
    .line 34
    iget-wide v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->remotever:J

    return-wide v0
.end method

.method static synthetic access$16(Lcom/bigtincan/android/adfree/DoUpgrade;)J
    .locals 2
    .parameter

    .prologue
    .line 33
    iget-wide v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    return-wide v0
.end method

.method static synthetic access$2(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 384
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->Revert()V

    return-void
.end method

.method static synthetic access$3(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 260
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->cb1Click()V

    return-void
.end method

.method static synthetic access$4(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 280
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->cb2Click()V

    return-void
.end method

.method static synthetic access$5(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 290
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3Click()V

    return-void
.end method

.method static synthetic access$6(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 296
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->radioClick()V

    return-void
.end method

.method static synthetic access$7(Lcom/bigtincan/android/adfree/DoUpgrade;)V
    .locals 0
    .parameter

    .prologue
    .line 232
    invoke-direct {p0}, Lcom/bigtincan/android/adfree/DoUpgrade;->checkAuthAsked()V

    return-void
.end method

.method static synthetic access$8(Lcom/bigtincan/android/adfree/DoUpgrade;)Lcom/bigtincan/android/adfree/Common;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    return-object v0
.end method

.method static synthetic access$9(Lcom/bigtincan/android/adfree/DoUpgrade;)Z
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-boolean v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    return v0
.end method

.method private cb1Click()V
    .locals 10

    .prologue
    const-wide/32 v4, 0x5265c00

    const/4 v9, 0x0

    .line 262
    const-string v1, "alarm"

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 263
    .local v0, mgr:Landroid/app/AlarmManager;
    new-instance v8, Landroid/content/Intent;

    const-class v1, Lcom/bigtincan/android/adfree/UpdateCheck;

    invoke-direct {v8, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 264
    .local v8, i:Landroid/content/Intent;
    invoke-static {p0, v9, v8, v9}, Landroid/app/PendingIntent;->getBroadcast(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 266
    .local v6, pi:Landroid/app/PendingIntent;
    const v1, 0x7f050007

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/CheckBox;

    .line 267
    .local v7, cb:Landroid/widget/CheckBox;
    invoke-virtual {v7}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 269
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "AdFree: elapsedRealtime()"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/bigtincan/android/adfree/Common;->LogMessage(Ljava/lang/String;)V

    .line 270
    const/4 v1, 0x2

    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    add-long/2addr v2, v4

    invoke-virtual/range {v0 .. v6}, Landroid/app/AlarmManager;->setRepeating(IJJLandroid/app/PendingIntent;)V

    .line 271
    const v1, 0x7f040017

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {p0, v1, v9}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 277
    :goto_0
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v2, "DoUpdateCheck"

    invoke-virtual {v7}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/bigtincan/android/adfree/Common;->SetBoolPref(Ljava/lang/String;Z)V

    .line 278
    return-void

    .line 273
    :cond_0
    invoke-virtual {v0, v6}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    .line 274
    const v1, 0x7f040018

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {p0, v1, v9}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method private cb2Click()V
    .locals 4

    .prologue
    .line 282
    const v1, 0x7f050008

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    .line 283
    .local v0, cb:Landroid/widget/CheckBox;
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v2, "SymLink"

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/bigtincan/android/adfree/Common;->SetBoolPref(Ljava/lang/String;Z)V

    .line 284
    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 285
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 288
    :goto_0
    return-void

    .line 287
    :cond_0
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/CheckBox;->setVisibility(I)V

    goto :goto_0
.end method

.method private cb3Click()V
    .locals 4

    .prologue
    .line 292
    const v1, 0x7f050009

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    .line 293
    .local v0, cb:Landroid/widget/CheckBox;
    iget-object v1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v2, "MakeSymLink"

    invoke-virtual {v0}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v3

    invoke-virtual {v1, v2, v3}, Lcom/bigtincan/android/adfree/Common;->SetBoolPref(Ljava/lang/String;Z)V

    .line 294
    return-void
.end method

.method private checkAuthAsked()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 234
    iget-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v3, "authAsked"

    invoke-virtual {v2, v3, v4}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;Z)Z

    move-result v2

    if-nez v2, :cond_0

    .line 236
    const/4 v2, 0x3

    new-array v1, v2, [Ljava/lang/String;

    const-string v2, "Autentificarte"

    aput-object v2, v1, v4

    const/4 v2, 0x1

    const-string v3, "Registrarte"

    aput-object v3, v1, v2

    const/4 v2, 0x2

    const-string v3, "Saltar paso"

    aput-object v3, v1, v2

    .line 238
    .local v1, items:[Ljava/lang/String;
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 239
    .local v0, ab:Landroid/app/AlertDialog$Builder;
    const v2, 0x108009b

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    .line 240
    const-string v2, "Elija una opcion"

    invoke-virtual {v0, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 241
    const/4 v2, -0x1

    new-instance v3, Lcom/bigtincan/android/adfree/DoUpgrade$11;

    invoke-direct {v3, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$11;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 256
    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 258
    .end local v0           #ab:Landroid/app/AlertDialog$Builder;
    .end local v1           #items:[Ljava/lang/String;
    :cond_0
    return-void
.end method

.method private radioClick()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 298
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r1:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 300
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 301
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v1, "rGroup"

    invoke-virtual {v0, v1, v3}, Lcom/bigtincan/android/adfree/Common;->SetIntPref(Ljava/lang/String;I)V

    .line 302
    const v0, 0x7f040009

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 309
    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v1, "et1"

    iget-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/bigtincan/android/adfree/Common;->SetStringPref(Ljava/lang/String;Ljava/lang/String;)V

    .line 310
    return-void

    .line 303
    :cond_1
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r3:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 304
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 305
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v1, "rGroup"

    const/4 v2, 0x2

    invoke-virtual {v0, v1, v2}, Lcom/bigtincan/android/adfree/Common;->SetIntPref(Ljava/lang/String;I)V

    .line 306
    const v0, 0x7f04000d

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method private showMessage()V
    .locals 5

    .prologue
    .line 350
    iget-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->pd:Landroid/app/ProgressDialog;

    invoke-virtual {v2}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 351
    iget-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->pd:Landroid/app/ProgressDialog;

    invoke-virtual {v2}, Landroid/app/ProgressDialog;->dismiss()V

    .line 353
    :cond_0
    const/4 v2, 0x0

    iput-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->pd:Landroid/app/ProgressDialog;

    .line 355
    const v2, 0x7f040028

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 356
    .local v1, title:Ljava/lang/String;
    const v2, 0x7f040029

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 358
    .local v0, msg:Ljava/lang/String;
    iget-boolean v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->revertfile:Z

    if-eqz v2, :cond_1

    .line 359
    const-string v0, "Your hosts file has been restored."

    .line 361
    :cond_1
    iget-object v2, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->failedmsg:Ljava/lang/String;

    if-eqz v2, :cond_2

    .line 363
    const v2, 0x7f04001c

    invoke-virtual {p0, v2}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 364
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->failedmsg:Ljava/lang/String;

    .line 367
    :cond_2
    new-instance v2, Landroid/app/AlertDialog$Builder;

    invoke-direct {v2, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 368
    const v3, 0x108009b

    invoke-virtual {v2, v3}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    .line 369
    invoke-virtual {v2, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    .line 370
    invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    .line 371
    const v3, 0x7f040012

    invoke-virtual {p0, v3}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v3

    new-instance v4, Lcom/bigtincan/android/adfree/DoUpgrade$12;

    invoke-direct {v4, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$12;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v2, v3, v4}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v2

    .line 381
    invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 382
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 11
    .parameter "savedInstanceState"

    .prologue
    .line 46
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 47
    const v7, 0x7f030001

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->setContentView(I)V

    .line 48
    const/4 v7, 0x1

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->setRequestedOrientation(I)V

    .line 49
    new-instance v7, Lcom/bigtincan/android/adfree/Common;

    invoke-direct {v7, p0}, Lcom/bigtincan/android/adfree/Common;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    .line 53
    :try_start_0
    const-string v7, "notification"

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Landroid/app/NotificationManager;

    .line 54
    .local v4, nm:Landroid/app/NotificationManager;
    const/high16 v7, 0x7f04

    invoke-virtual {v4, v7}, Landroid/app/NotificationManager;->cancel(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 57
    .end local v4           #nm:Landroid/app/NotificationManager;
    :goto_0
    const v7, 0x7f050005

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    .line 58
    .local v3, doit:Landroid/widget/Button;
    new-instance v7, Lcom/bigtincan/android/adfree/DoUpgrade$2;

    invoke-direct {v7, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$2;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v3, v7}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 67
    const v7, 0x7f050006

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/Button;

    .line 68
    .local v5, revert:Landroid/widget/Button;
    new-instance v7, Lcom/bigtincan/android/adfree/DoUpgrade$3;

    invoke-direct {v7, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$3;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v5, v7}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 77
    const v7, 0x7f050007

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/CheckBox;

    .line 78
    .local v1, cb1:Landroid/widget/CheckBox;
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "uid"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetIntPref(Ljava/lang/String;)I

    move-result v7

    if-lez v7, :cond_0

    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "credit"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetIntPref(Ljava/lang/String;)I

    move-result v7

    if-gtz v7, :cond_3

    .line 80
    :cond_0
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "DoUpdateCheck"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 81
    const/4 v7, 0x1

    invoke-virtual {v1, v7}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 90
    :cond_1
    :goto_1
    new-instance v7, Lcom/bigtincan/android/adfree/DoUpgrade$4;

    invoke-direct {v7, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$4;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v1, v7}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 99
    const v7, 0x7f050008

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/CheckBox;

    .line 100
    .local v2, cb2:Landroid/widget/CheckBox;
    const v7, 0x7f050009

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .end local p1
    check-cast p1, Landroid/widget/CheckBox;

    iput-object p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    .line 102
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v7}, Lcom/bigtincan/android/adfree/Common;->isLink()Z

    move-result v7

    if-eqz v7, :cond_4

    .line 104
    const/16 v7, 0x8

    invoke-virtual {v2, v7}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 105
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/16 v8, 0x8

    invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 106
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "SymLink"

    const/4 v9, 0x1

    invoke-virtual {v7, v8, v9}, Lcom/bigtincan/android/adfree/Common;->SetBoolPref(Ljava/lang/String;Z)V

    .line 139
    :goto_2
    const v7, 0x7f05000b

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RadioButton;

    iput-object p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r1:Landroid/widget/RadioButton;

    .line 141
    const v7, 0x7f05000c

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/RadioButton;

    iput-object p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r3:Landroid/widget/RadioButton;

    .line 142
    const v7, 0x7f05000d

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/EditText;

    iput-object p1, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    .line 143
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    iget-object v8, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v9, "et1"

    const-string v10, "127.0.0.1"

    invoke-virtual {v8, v9, v10}, Lcom/bigtincan/android/adfree/Common;->GetStringPref(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 145
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "rGroup"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetIntPref(Ljava/lang/String;)I

    move-result v7

    if-nez v7, :cond_7

    .line 147
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r1:Landroid/widget/RadioButton;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 148
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 160
    :cond_2
    :goto_3
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r1:Landroid/widget/RadioButton;

    new-instance v8, Lcom/bigtincan/android/adfree/DoUpgrade$7;

    invoke-direct {v8, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$7;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v7, v8}, Landroid/widget/RadioButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 178
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r3:Landroid/widget/RadioButton;

    new-instance v8, Lcom/bigtincan/android/adfree/DoUpgrade$8;

    invoke-direct {v8, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$8;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v7, v8}, Landroid/widget/RadioButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 187
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v7}, Lcom/bigtincan/android/adfree/Common;->findCatPath()Z

    move-result v7

    if-nez v7, :cond_8

    .line 189
    const v7, 0x7f040010

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 190
    .local v6, title:Ljava/lang/String;
    const v7, 0x7f040011

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 192
    .local v0, body:Ljava/lang/String;
    new-instance v7, Landroid/app/AlertDialog$Builder;

    invoke-direct {v7, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 193
    const v8, 0x1080027

    invoke-virtual {v7, v8}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 194
    invoke-virtual {v7, v6}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 195
    invoke-virtual {v7, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 196
    const v8, 0x7f040012

    invoke-virtual {p0, v8}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v8

    new-instance v9, Lcom/bigtincan/android/adfree/DoUpgrade$9;

    invoke-direct {v9, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$9;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v7, v8, v9}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 203
    invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 230
    :goto_4
    return-void

    .line 83
    .end local v0           #body:Ljava/lang/String;
    .end local v2           #cb2:Landroid/widget/CheckBox;
    .end local v6           #title:Ljava/lang/String;
    .restart local p1
    :cond_3
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "AutoUpdate"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 85
    const v7, 0x7f040006

    invoke-virtual {v1, v7}, Landroid/widget/CheckBox;->setText(I)V

    .line 86
    const/4 v7, 0x1

    invoke-virtual {v1, v7}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto/16 :goto_1

    .line 108
    .end local p1
    .restart local v2       #cb2:Landroid/widget/CheckBox;
    :cond_4
    const/4 v7, 0x0

    invoke-virtual {v2, v7}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 110
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "SymLink"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_6

    .line 112
    const/4 v7, 0x1

    invoke-virtual {v2, v7}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 113
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/4 v8, 0x0

    invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 117
    :goto_5
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "MakeSymLink"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetBoolPref(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 118
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 120
    :cond_5
    new-instance v7, Lcom/bigtincan/android/adfree/DoUpgrade$5;

    invoke-direct {v7, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$5;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v2, v7}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 129
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    new-instance v8, Lcom/bigtincan/android/adfree/DoUpgrade$6;

    invoke-direct {v8, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$6;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_2

    .line 115
    :cond_6
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->cb3:Landroid/widget/CheckBox;

    const/4 v8, 0x4

    invoke-virtual {v7, v8}, Landroid/widget/CheckBox;->setVisibility(I)V

    goto :goto_5

    .line 155
    :cond_7
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    const-string v8, "rGroup"

    invoke-virtual {v7, v8}, Lcom/bigtincan/android/adfree/Common;->GetIntPref(Ljava/lang/String;)I

    move-result v7

    const/4 v8, 0x2

    if-ne v7, v8, :cond_2

    .line 156
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->r3:Landroid/widget/RadioButton;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 157
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->et1:Landroid/widget/EditText;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/widget/EditText;->setEnabled(Z)V

    goto/16 :goto_3

    .line 207
    :cond_8
    const v7, 0x7f040013

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 208
    .restart local v6       #title:Ljava/lang/String;
    const v7, 0x7f040014

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 210
    .restart local v0       #body:Ljava/lang/String;
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v7}, Lcom/bigtincan/android/adfree/Common;->GetServerVer()J

    move-result-wide v7

    iput-wide v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->remotever:J

    .line 211
    iget-object v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v7}, Lcom/bigtincan/android/adfree/Common;->GetLocalVer()J

    move-result-wide v7

    iput-wide v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    .line 212
    iget-wide v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->remotever:J

    const-wide/16 v9, 0x0

    cmp-long v7, v7, v9

    if-lez v7, :cond_9

    iget-wide v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->remotever:J

    iget-wide v9, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    cmp-long v7, v7, v9

    if-nez v7, :cond_a

    :cond_9
    iget-wide v7, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->lastupdate:J

    const-wide/16 v9, 0x0

    cmp-long v7, v7, v9

    if-gtz v7, :cond_b

    .line 214
    :cond_a
    const v7, 0x7f040015

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v6

    .line 215
    const v7, 0x7f040016

    invoke-virtual {p0, v7}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 218
    :cond_b
    new-instance v7, Landroid/app/AlertDialog$Builder;

    invoke-direct {v7, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 219
    const/high16 v8, 0x7f02

    invoke-virtual {v7, v8}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 220
    invoke-virtual {v7, v6}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 221
    invoke-virtual {v7, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 222
    const v8, 0x7f040012

    invoke-virtual {p0, v8}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v8

    new-instance v9, Lcom/bigtincan/android/adfree/DoUpgrade$10;

    invoke-direct {v9, p0}, Lcom/bigtincan/android/adfree/DoUpgrade$10;-><init>(Lcom/bigtincan/android/adfree/DoUpgrade;)V

    invoke-virtual {v7, v8, v9}, Landroid/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v7

    .line 229
    invoke-virtual {v7}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    goto/16 :goto_4

    .line 55
    .end local v0           #body:Ljava/lang/String;
    .end local v1           #cb1:Landroid/widget/CheckBox;
    .end local v2           #cb2:Landroid/widget/CheckBox;
    .end local v3           #doit:Landroid/widget/Button;
    .end local v5           #revert:Landroid/widget/Button;
    .end local v6           #title:Ljava/lang/String;
    .restart local p1
    :catch_0
    move-exception v7

    goto/16 :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 1
    .parameter "menu"

    .prologue
    .line 315
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    .line 317
    const v0, 0x7f040019

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 318
    const v0, 0x7f04001a

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 319
    const v0, 0x7f04001b

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 320
    const v0, 0x7f040036

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Landroid/view/Menu;->add(Ljava/lang/CharSequence;)Landroid/view/MenuItem;

    .line 322
    const/4 v0, 0x1

    return v0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 3
    .parameter "item"

    .prologue
    .line 327
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f040019

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 328
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "https://www.bigtincan.com/donation.html"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->startActivity(Landroid/content/Intent;)V

    .line 336
    :cond_0
    :goto_0
    const/4 v0, 0x1

    return v0

    .line 329
    :cond_1
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f04001a

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 330
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "http://forum.xda-developers.com/showthread.php?t=509997"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 331
    :cond_2
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f04001b

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 332
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    const-string v2, "http://forum.bigtincan.com/index.php?topic=121.0"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {p0, v0}, Lcom/bigtincan/android/adfree/DoUpgrade;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 333
    :cond_3
    invoke-interface {p1}, Landroid/view/MenuItem;->getTitle()Ljava/lang/CharSequence;

    move-result-object v0

    const v1, 0x7f040036

    invoke-virtual {p0, v1}, Lcom/bigtincan/android/adfree/DoUpgrade;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 334
    iget-object v0, p0, Lcom/bigtincan/android/adfree/DoUpgrade;->common:Lcom/bigtincan/android/adfree/Common;

    invoke-virtual {v0}, Lcom/bigtincan/android/adfree/Common;->showAuth()V

    goto :goto_0
.end method
